#include "../rg_gui.h"

// This comes with no warranty, implied or otherwise

// This data structure was designed to support Proportional fonts
// on Arduinos. It can however handle any ttf font that has been converted
// using the conversion program. These could be fixed width or proportional
// fonts. Individual characters do not have to be multiples of 8 bits wide.
// Any width is fine and does not need to be fixed.

// The data bits are packed to minimize data requirements, but the tradeoff
// is that a header is required per character.

// Font         : Bitstream Vera Bold
// Point Size   : 15
// Memory usage : 1520 bytes
// # characters : 95

const rg_font_t font_VeraBold15 = {
    .name = "VeraBold",
    .type = 1,
    .width = 9,
    .height = 15,
    .chars = 95,
    .data = {
        // Individual Character Format:
        // ----------------------------
        // Character Code
        // Adjusted Y Offset
        // Width
        // Height
        // xOffset
        // xDelta (the distance to move the cursor. Effective width of the character.)
        // Data[n]

        // NOTE: You can remove any of these characters if they are not needed in
        // your application. The first character number in each Glyph indicates
        // the ASCII character code. Therefore, these do not have to be sequential.
        // Just remove all the content for a particular character to save space.

        // ' '
        0x20,0x0C,0x00,0x00,0x00,0x05,

        // '!'
        0x21,0x01,0x02,0x0B,0x02,0x07,
        0xFF,0xFC,0xFC,
        // '"'
        0x22,0x01,0x05,0x04,0x01,0x08,
        0xDE,0xF7,0xB0,
        // '#'
        0x23,0x01,0x0B,0x0B,0x01,0x0D,
        0x0C,0xC1,0x90,0x26,0x04,0xC7,0xFE,0x32,0x04,0xC7,0xFE,0x32,0x04,0xC0,0x98,0x00,
        // '$'
        0x24,0x00,0x07,0x0E,0x02,0x0A,
        0x10,0x21,0xE6,0xAD,0x1E,0x3F,0x3F,0x1E,0x2E,0x5B,0xE1,0x02,0x00,
        // '%'
        0x25,0x01,0x0E,0x0B,0x01,0x0F,
        0x78,0x73,0x31,0x8C,0xCC,0x33,0x70,0xCD,0x81,0xED,0xE0,0x7C,0xC3,0xB3,0x0C,0xCC,0x63,0x33,0x87,0x80,
        // '&'
        0x26,0x01,0x0C,0x0B,0x01,0x0D,
        0x1E,0x03,0x10,0x30,0x03,0x00,0x78,0x6E,0xC6,0xC6,0x4C,0x3C,0xC3,0x86,0x3C,0x3E,0x60,
        // '''
        0x27,0x01,0x02,0x04,0x01,0x05,
        0xFF,
        // '('
        0x28,0x01,0x04,0x0D,0x01,0x07,
        0x36,0x6C,0xCC,0xCC,0xCC,0x66,0x30,
        // ')'
        0x29,0x01,0x04,0x0D,0x01,0x07,
        0xC6,0x63,0x33,0x33,0x33,0x66,0xC0,
        // '*'
        0x2A,0x01,0x07,0x07,0x00,0x08,
        0x11,0x25,0xF1,0xC7,0xD2,0x44,0x00,
        // '+'
        0x2B,0x02,0x0A,0x0A,0x01,0x0D,
        0x0C,0x03,0x00,0xC0,0x30,0xFF,0xFF,0xF0,0xC0,0x30,0x0C,0x03,0x00,
        // ','
        0x2C,0x09,0x03,0x05,0x00,0x06,
        0x6D,0xBC,
        // '-'
        0x2D,0x06,0x05,0x02,0x01,0x06,
        0xFF,0xC0,
        // '.'
        0x2E,0x09,0x02,0x03,0x01,0x06,
        0xFC,
        // '/'
        0x2F,0x01,0x05,0x0C,0x00,0x05,
        0x18,0xC4,0x63,0x10,0x8C,0x62,0x31,0x80,
        // '0'
        0x30,0x01,0x08,0x0B,0x01,0x0A,
        0x3C,0x66,0xC2,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0x66,0x3C,
        // '1'
        0x31,0x01,0x07,0x0B,0x01,0x0A,
        0x39,0xB0,0x60,0xC1,0x83,0x06,0x0C,0x18,0x31,0xF8,
        // '2'
        0x32,0x01,0x08,0x0B,0x01,0x0A,
        0x7C,0x86,0x03,0x03,0x07,0x06,0x0C,0x18,0x30,0x60,0xFF,
        // '3'
        0x33,0x01,0x08,0x0B,0x01,0x0A,
        0x7C,0x87,0x03,0x03,0x07,0x3E,0x07,0x03,0x03,0x86,0x7C,
        // '4'
        0x34,0x00,0x0A,0x0C,0x01,0x0A,
        0x00,0x03,0xC1,0xB0,0x4C,0x23,0x10,0xCC,0x32,0x0C,0xFF,0xC0,0xC0,0x30,0x0C,
        // '5'
        0x35,0x01,0x08,0x0B,0x01,0x0A,
        0xFE,0xC0,0xC0,0xC0,0xFC,0x86,0x03,0x03,0x03,0x86,0x7C,
        // '6'
        0x36,0x01,0x08,0x0B,0x01,0x0A,
        0x3C,0x62,0x40,0xC0,0xFC,0xE6,0xC3,0xC3,0xC3,0x66,0x3C,
        // '7'
        0x37,0x01,0x08,0x0B,0x01,0x0A,
        0xFF,0x03,0x07,0x06,0x06,0x0C,0x0C,0x18,0x18,0x38,0x30,
        // '8'
        0x38,0x01,0x08,0x0B,0x01,0x0A,
        0x3C,0xE7,0xC3,0xC3,0xE7,0x7E,0xE7,0xC3,0xC3,0xE7,0x3C,
        // '9'
        0x39,0x01,0x08,0x0B,0x01,0x0A,
        0x3C,0x66,0xC3,0xC3,0xC3,0x67,0x3F,0x03,0x02,0x46,0x3C,
        // ':'
        0x3A,0x04,0x02,0x08,0x01,0x06,
        0xFC,0x3F,
        // ';'
        0x3B,0x04,0x03,0x0A,0x00,0x06,
        0x6D,0x80,0xDB,0x78,
        // '<'
        0x3C,0x03,0x09,0x09,0x02,0x0D,
        0x00,0x83,0xC7,0xDF,0x0E,0x07,0xC0,0x7C,0x0F,0x00,0x80,
        // '='
        0x3D,0x04,0x09,0x06,0x02,0x0D,
        0xFF,0xFF,0xC0,0x00,0x0F,0xFF,0xFC,
        // '>'
        0x3E,0x03,0x09,0x09,0x02,0x0D,
        0x80,0x78,0x1F,0x01,0xF0,0x38,0x7D,0xF1,0xE0,0x80,0x00,
        // '?'
        0x3F,0x01,0x07,0x0B,0x01,0x09,
        0x7D,0x0C,0x18,0x71,0xC7,0x0C,0x00,0x30,0x60,0xC0,
        // '@'
        0x40,0x01,0x0D,0x0D,0x01,0x0F,
        0x0F,0x81,0x83,0x18,0x04,0x9F,0xA8,0xDC,0xCC,0x66,0x63,0x33,0x19,0x8D,0xD2,0x7F,0x18,0x00,0x60,0xC0,0xFC,0x00,
        // 'A'
        0x41,0x01,0x0B,0x0B,0x00,0x0B,
        0x0E,0x01,0xC0,0x6C,0x0D,0x83,0x18,0x63,0x0C,0x63,0xFE,0x60,0xCC,0x1B,0x01,0x80,
        // 'B'
        0x42,0x01,0x09,0x0B,0x01,0x0B,
        0xFE,0x61,0xF0,0x78,0x3C,0x3F,0xFB,0x0F,0x83,0xC1,0xE1,0xFF,0xC0,
        // 'C'
        0x43,0x01,0x09,0x0B,0x01,0x0B,
        0x1F,0x98,0x58,0x18,0x0C,0x06,0x03,0x01,0x80,0x60,0x18,0x47,0xE0,
        // 'D'
        0x44,0x01,0x0A,0x0B,0x01,0x0C,
        0xFE,0x30,0xCC,0x1B,0x03,0xC0,0xF0,0x3C,0x0F,0x03,0xC1,0xB0,0xCF,0xC0,
        // 'E'
        0x45,0x01,0x08,0x0B,0x01,0x0A,
        0xFF,0xC0,0xC0,0xC0,0xC0,0xFF,0xC0,0xC0,0xC0,0xC0,0xFF,
        // 'F'
        0x46,0x01,0x08,0x0B,0x01,0x0A,
        0xFF,0xC0,0xC0,0xC0,0xC0,0xFF,0xC0,0xC0,0xC0,0xC0,0xC0,
        // 'G'
        0x47,0x01,0x0A,0x0B,0x01,0x0C,
        0x1F,0x9C,0x26,0x03,0x00,0xC0,0x30,0xFC,0x0F,0x03,0x60,0xCC,0x31,0xFC,
        // 'H'
        0x48,0x01,0x0A,0x0B,0x01,0x0C,
        0xC0,0xF0,0x3C,0x0F,0x03,0xC0,0xFF,0xFC,0x0F,0x03,0xC0,0xF0,0x3C,0x0C,
        // 'I'
        0x49,0x01,0x02,0x0B,0x02,0x06,
        0xFF,0xFF,0xFC,
        // 'J'
        0x4A,0x01,0x04,0x0E,0x00,0x06,
        0x33,0x33,0x33,0x33,0x33,0x33,0x7E,
        // 'K'
        0x4B,0x01,0x0A,0x0B,0x01,0x0B,
        0xC1,0xB0,0xCC,0x63,0x30,0xD8,0x3C,0x0D,0x83,0x30,0xC6,0x30,0xCC,0x18,
        // 'L'
        0x4C,0x01,0x08,0x0B,0x01,0x0A,
        0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xFF,
        // 'M'
        0x4D,0x01,0x0C,0x0B,0x01,0x0E,
        0xE0,0x7F,0x0F,0xF0,0xFD,0x9B,0xD9,0xBC,0xF3,0xCF,0x3C,0x63,0xC6,0x3C,0x03,0xC0,0x30,
        // 'N'
        0x4E,0x01,0x0A,0x0B,0x01,0x0C,
        0xE0,0xF8,0x3F,0x0F,0x63,0xD8,0xF3,0x3C,0x6F,0x1B,0xC3,0xF0,0x7C,0x1C,
        // 'O'
        0x4F,0x01,0x0B,0x0B,0x01,0x0D,
        0x1F,0x0E,0x39,0x83,0x60,0x3C,0x07,0x80,0xF0,0x1E,0x03,0x60,0xCE,0x38,0x7C,0x00,
        // 'P'
        0x50,0x01,0x09,0x0B,0x01,0x0B,
        0xFE,0x61,0xB0,0x78,0x3C,0x1E,0x1B,0xF9,0x80,0xC0,0x60,0x30,0x00,
        // 'Q'
        0x51,0x01,0x0B,0x0D,0x01,0x0D,
        0x1F,0x0E,0x39,0x83,0x60,0x3C,0x07,0x80,0xF0,0x1E,0x03,0x60,0xCE,0x38,0x7C,0x01,0xC0,0x1C,
        // 'R'
        0x52,0x01,0x09,0x0B,0x01,0x0B,
        0xFE,0x63,0xB0,0xD8,0x6C,0x36,0x3B,0xF9,0x8C,0xC3,0x61,0xB0,0x60,
        // 'S'
        0x53,0x01,0x09,0x0B,0x01,0x0B,
        0x3F,0x20,0xB0,0x1C,0x07,0xE1,0xF8,0x1E,0x03,0x01,0xC0,0xBF,0x80,
        // 'T'
        0x54,0x01,0x0A,0x0B,0x00,0x0A,
        0xFF,0xC3,0x00,0xC0,0x30,0x0C,0x03,0x00,0xC0,0x30,0x0C,0x03,0x00,0xC0,
        // 'U'
        0x55,0x01,0x0A,0x0B,0x01,0x0C,
        0xC0,0xF0,0x3C,0x0F,0x03,0xC0,0xF0,0x3C,0x0F,0x03,0xC0,0xD8,0x63,0xF0,
        // 'V'
        0x56,0x01,0x0B,0x0B,0x00,0x0C,
        0xC0,0x6C,0x19,0x83,0x30,0x63,0x18,0x63,0x0C,0x60,0xD8,0x1B,0x03,0xE0,0x38,0x00,
        // 'W'
        0x57,0x01,0x10,0x0B,0x01,0x11,
        0xC3,0x86,0xC3,0x86,0x63,0x8C,0x63,0x8C,0x67,0xCC,0x66,0xCC,0x36,0xD8,0x36,0xD8,0x3C,0x78,0x1C,0x70,0x1C,0x70,
        // 'X'
        0x58,0x01,0x0B,0x0B,0x01,0x0D,
        0xE0,0xEC,0x18,0xC6,0x0D,0x81,0xF0,0x1C,0x07,0xC0,0xD8,0x31,0x8C,0x1B,0x83,0x80,
        // 'Y'
        0x59,0x01,0x0A,0x0B,0x01,0x0C,
        0xE1,0xD8,0x63,0x30,0xCC,0x1E,0x07,0x80,0xC0,0x30,0x0C,0x03,0x00,0xC0,
        // 'Z'
        0x5A,0x01,0x0A,0x0B,0x01,0x0C,
        0xFF,0xC0,0x30,0x18,0x0C,0x06,0x03,0x01,0x80,0xC0,0x60,0x30,0x0F,0xFC,
        // '['
        0x5B,0x01,0x04,0x0D,0x01,0x07,
        0xFC,0xCC,0xCC,0xCC,0xCC,0xCC,0xF0,
        // '\'
        0x5C,0x01,0x05,0x0C,0x00,0x05,
        0xC6,0x10,0xC6,0x10,0x86,0x30,0x86,0x30,
        // ']'
        0x5D,0x01,0x04,0x0D,0x01,0x07,
        0xF3,0x33,0x33,0x33,0x33,0x33,0xF0,
        // '^'
        0x5E,0x01,0x0A,0x04,0x02,0x0D,
        0x0C,0x07,0x83,0x31,0x86,
        // '_'
        0x5F,0x0F,0x08,0x01,0x00,0x08,
        0xFF,
        // '`'
        0x60,0x00,0x04,0x03,0x01,0x08,
        0xC6,0x30,
        // 'a'
        0x61,0x04,0x08,0x08,0x01,0x0A,
        0x3E,0x43,0x03,0x7F,0xE3,0xC3,0xC7,0x7B,
        // 'b'
        0x62,0x01,0x08,0x0B,0x01,0x0A,
        0xC0,0xC0,0xC0,0xDC,0xE6,0xC3,0xC3,0xC3,0xC3,0xE6,0xDC,
        // 'c'
        0x63,0x04,0x07,0x08,0x01,0x09,
        0x3C,0xC7,0x06,0x0C,0x18,0x18,0x9E,
        // 'd'
        0x64,0x01,0x08,0x0B,0x01,0x0A,
        0x03,0x03,0x03,0x3B,0x67,0xC3,0xC3,0xC3,0xC3,0x67,0x3B,
        // 'e'
        0x65,0x04,0x08,0x08,0x01,0x0A,
        0x3C,0x66,0xC3,0xFF,0xC0,0xC0,0x61,0x3E,
        // 'f'
        0x66,0x01,0x05,0x0B,0x01,0x07,
        0x3B,0x19,0xF6,0x31,0x8C,0x63,0x18,
        // 'g'
        0x67,0x04,0x08,0x0B,0x01,0x0A,
        0x3B,0x67,0xC3,0xC3,0xC3,0xC3,0x67,0x3B,0x03,0x46,0x3C,
        // 'h'
        0x68,0x01,0x08,0x0B,0x01,0x0A,
        0xC0,0xC0,0xC0,0xDE,0xE3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,
        // 'i'
        0x69,0x01,0x02,0x0B,0x01,0x04,
        0xF3,0xFF,0xFC,
        // 'j'
        0x6A,0x01,0x04,0x0E,0xFF,0x04,
        0x33,0x03,0x33,0x33,0x33,0x33,0x3E,
        // 'k'
        0x6B,0x01,0x09,0x0B,0x01,0x0A,
        0xC0,0x60,0x30,0x18,0x6C,0x66,0x63,0x61,0xF0,0xDC,0x67,0x31,0xC0,
        // 'l'
        0x6C,0x01,0x02,0x0B,0x01,0x04,
        0xFF,0xFF,0xFC,
        // 'm'
        0x6D,0x04,0x0C,0x08,0x02,0x10,
        0xDC,0xEE,0x73,0xC6,0x3C,0x63,0xC6,0x3C,0x63,0xC6,0x3C,0x63,
        // 'n'
        0x6E,0x04,0x08,0x08,0x01,0x0A,
        0xDE,0xE3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,
        // 'o'
        0x6F,0x04,0x08,0x08,0x01,0x0A,
        0x3C,0x66,0xC3,0xC3,0xC3,0xC3,0x66,0x3C,
        // 'p'
        0x70,0x04,0x08,0x0B,0x01,0x0A,
        0xDC,0xE6,0xC3,0xC3,0xC3,0xC3,0xE6,0xDC,0xC0,0xC0,0xC0,
        // 'q'
        0x71,0x04,0x08,0x0B,0x01,0x0A,
        0x3B,0x67,0xC3,0xC3,0xC3,0xC3,0x67,0x3B,0x03,0x03,0x03,
        // 'r'
        0x72,0x04,0x06,0x08,0x01,0x07,
        0xDF,0x0C,0x30,0xC3,0x0C,0x30,
        // 's'
        0x73,0x04,0x07,0x08,0x01,0x09,
        0x7D,0x87,0x07,0xE7,0xE0,0xE1,0xBE,
        // 't'
        0x74,0x01,0x05,0x0B,0x01,0x07,
        0x63,0x19,0xF6,0x31,0x8C,0x63,0x0E,
        // 'u'
        0x75,0x04,0x08,0x08,0x01,0x0A,
        0xC3,0xC3,0xC3,0xC3,0xC3,0xC3,0xC7,0x7B,
        // 'v'
        0x76,0x04,0x09,0x08,0x00,0x09,
        0xC1,0xB1,0x98,0xCC,0x63,0x61,0xB0,0x70,0x38,
        // 'w'
        0x77,0x04,0x0C,0x08,0x01,0x0E,
        0xC6,0x3C,0x63,0x66,0x66,0xF6,0x6F,0x63,0x9C,0x39,0xC3,0x9C,
        // 'x'
        0x78,0x04,0x09,0x08,0x01,0x0B,
        0xE3,0xB1,0x8D,0x83,0x81,0xC1,0xB1,0x8D,0xC7,
        // 'y'
        0x79,0x04,0x09,0x0B,0x00,0x0A,
        0xC1,0xB1,0x98,0xCC,0x63,0x61,0xB0,0x78,0x38,0x0C,0x0C,0x1C,0x00,
        // 'z'
        0x7A,0x04,0x07,0x08,0x01,0x09,
        0xFE,0x0C,0x30,0xC3,0x0C,0x30,0x7F,
        // '{'
        0x7B,0x01,0x06,0x0E,0x02,0x0B,
        0x1C,0xC3,0x0C,0x30,0xCE,0x0C,0x30,0xC3,0x0C,0x30,0x70,
        // '|'
        0x7C,0x01,0x02,0x0F,0x02,0x05,
        0xFF,0xFF,0xFF,0xFC,
        // '}'
        0x7D,0x01,0x06,0x0E,0x02,0x0B,
        0xE0,0xC3,0x0C,0x30,0xC1,0xCC,0x30,0xC3,0x0C,0x33,0x80,
        // '~'
        0x7E,0x05,0x09,0x05,0x02,0x0D,
        0x00,0x3C,0x7F,0xF1,0xE0,0x00,


        // Terminator
        0xFF
    },
};